package com.silong.swing.myWindows;

import sun.font.TrueTypeFont;

/**
 * Created by 龙哥 on 2022-01-17 14:51
 * Silong Software.
 */

public class Test {

    public static void main(String[] args) {

        //调用集成流式布局窗体
        //MyFrameFlowLayout myFrame = new MyFrameFlowLayout("自定义窗体", 800, 600);
        //myFrame.setVisible(true);

        //调用边框布局窗体
        //MyFrameByBorderLayout myFrameByBorderLayout = new MyFrameByBorderLayout();
        //myFrameByBorderLayout.setVisible(true);

        //调用网格布局窗体
        //MyFrameGridLayout myFrameGridLayout = new MyFrameGridLayout();
        //myFrameGridLayout.setVisible(true);

        //调用自定义非布局窗体
        //MyFrame myFrame = new MyFrame();
        //myFrame.setVisible(true);

        //调用按钮添加鼠标监听器
        //ButtonMouseEvent buttonMouseEvent = new ButtonMouseEvent();
        //buttonMouseEvent.setVisible(true);

        //调用匿名监听器
        //MyFrameAnonymous myFrame = new MyFrameAnonymous();
        //myFrame.setVisible(true);

        //调用普通内部类监听器
        //MyFrameInnerClass myFrameInnerClass = new MyFrameInnerClass();
        //myFrameInnerClass.setVisible(true);

        //调用窗体实际监听器
        //MyFrameImplActionListener myFrameImplActionListener = new MyFrameImplActionListener();
        //myFrameImplActionListener.setVisible(true);

        //调用外部类创建监听器，复用程序比较高
        //MyFrameOutClass myFrameOutClass = new MyFrameOutClass();
        //myFrameOutClass.setVisible(true);

        //调用鼠标适配器类进行监听
        MyFrameAdapter myFrameAdapter = new MyFrameAdapter();
        myFrameAdapter.setVisible(true);


    }
}
